﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<EasyQuartz.Web.ViewModels.SchedulerStatusViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<script src="/Scripts/MicrosoftAjax.js" type="text/javascript"></script>
	<script src="/Scripts/MicrosoftMvcAjax.js" type="text/javascript"></script>
	<script src="/Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
	<script type="text/javascript">
		// Function update.
		function handleUpdate(context) {
			// Load and deserialize the returned JSON data
			var json = context.get_data();
			var data = Sys.Serialization.JavaScriptSerializer.deserialize(json);

			// Update the page elements
			$('scheduler-status').text(data).fadeOut(1000, null);

		}
	</script>
	<h1>
		Scheduling status
	</h1>
	<h2 id="scheduler-status">
		<%: Model.SchedulerStatus %></h2>
	<ul>
		<li>Start</li>
		<li>Start</li>
		<li><a href="<%: Request.Path %>Job/">List Jobs</a> </li>
	</ul>
</asp:Content>
